// 报单，奖金池相关接口
import http from '@/common/http.js'

// 报表列表
export function getReportList(params,needLoading) {
	return http.GET('/report/report-list', params,needLoading)
}

// 报单删除
export function reportDelete(data,needLoading) {
	return http.POST('/report/report-delete', data,needLoading)
}

// 报单编辑/新增
export function reportAdd(data,needLoading) {
	return http.POSTJSON('/report/report-add', data,needLoading)
}

// 报单表单信息（提交报单用）
export function reportFormInfo(params,needLoading) {
	return http.GET('/report/report-form-info', params,needLoading)
}

// 积分记录
export function getIntegralLog(params,needLoading) {
	return http.GET('/report/integral-log', params,needLoading)
}

// 奖金池
export function getBonusPoolList(params,needLoading) {
	return http.GET('/report/bonus-pool', params,needLoading)
}

// 全域分佣
export function getGlobalInfo(params,needLoading) {
	return http.GET('/report/global-info', params,needLoading)
}

// 提现页请求
export function getPriceList(params,needLoading) {
	return http.GET('/report/get-price', params,needLoading)
}

// 提现操作
export function cashApply(data,needLoading) {
	return http.POST('/report/cash-apply', data,needLoading)
}

// 提现明细
export function getCashApplyDetail(params,needLoading) {
	return http.GET('/report/cash-detail', params,needLoading)
}